<script>
	import {
		parseParam
	} from "@/common/parseParam.js"
	export default {
		onLaunch: function() {
			plus.screen.lockOrientation('portrait-primary'); //在华为手机会切换成横屏，故必须锁死竖屏，因为rpx是按一边来算的，换边会样式错乱！
			let res = uni.getSystemInfoSync()
			if (res) {
				uni.setStorageSync('SET_STATUS_BAR', res.statusBarHeight)
				uni.setStorageSync("SystemWidth", res.windowWidth)
				uni.setStorageSync("SystemHeight", res.windowHeight)
			}
		},
		onShow: function() {
			// #ifdef APP-PLUS
			var args = plus.runtime.arguments;
			if (args && args.split("//")[1]) {
				// 处理args参数，如直达到某新页面等
				uni.navigateTo({
					url:`/${args.split("//")[1]}`
				})
			}
			// #endif
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';

	// 设置整个项目的背景色
	page {
		background-color: $global-background;
		font-size: $global-fontSize;
	}

	.example-info {
		font-size: 14rpx;
		color: #333;
		padding: 10rpx;
	}

	.hbh_container {
		height: calc(100vh - 98rpx);
		// background-image: url("static/image/bg.gif");

		.hbh_box {
			height: calc(100% - var(--status-bar-height) - 89rpx);
			padding: 18rpx 30rpx;
			box-sizing: border-box;
		}

		.hbh_oneTitle {
			display: flex;
			align-items: center;
			margin-bottom: 20rpx;
			position: relative;

			.hbh_more {
				position: absolute;
				right: 0rpx;
				top: calc(50% - 22.5rpx);
				height: 45rpx;
				line-height: 45rpx;
				font-size: 32rpx;
				font-weight: 500;
				color: #00aaff;
			}

			.hbh_icon {
				width: 6rpx;
				height: 28rpx;
				// background: linear-gradient(180deg, #51C3FF 0%, #31B3F7 100%);
				border-radius: 3rpx 3rpx 3rpx 3rpx;
				opacity: 1;
				margin-right: 8rpx;
			}

			text {
				height: 45rpx;
				font-size: 32rpx;
				font-weight: 500;
				color: #fff;
			}
		}
	}

	.hbh_container2 {
		height: 100vh;

		.hbh_box {
			height: calc(100% - var(--status-bar-height) - 89rpx);
			padding: 18rpx 30rpx;
			box-sizing: border-box;
		}

		.hbh_oneTitle {
			display: flex;
			align-items: center;
			margin-bottom: 20rpx;

			.hbh_icon {
				width: 6rpx;
				height: 28rpx;
				// background: linear-gradient(180deg, #51C3FF 0%, #31B3F7 100%);
				border-radius: 3rpx 3rpx 3rpx 3rpx;
				opacity: 1;
				margin-right: 8rpx;
			}

			text {
				height: 45rpx;
				font-size: 32rpx;
				font-weight: 500;
				color: #333333;
			}
		}
	}

	/* #endif */
</style>